package com.dabai.iot.core.convert;

import com.dabai.iot.core.dto.ProductInput;
import com.dabai.iot.core.entity.ProductEntity;
import com.dabai.iot.core.vo.ProductSelectVO;
import com.dabai.iot.core.vo.ProductVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 产品 Convert
 *
 * @author kev1n
 */
@Mapper
public interface ProductConvert {

    ProductConvert INSTANCE = Mappers.getMapper(ProductConvert.class);

    ProductEntity convert(ProductInput input);

    ProductVO convertVO(ProductEntity product);

    ProductSelectVO convertSelectVO(ProductEntity product);

}
